﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PresentationLayer.Reports;

namespace PresentationLayer.View.Reports
{
    public partial class Report_Reorder : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            int m1 = Int32.Parse(DropDownList1.SelectedValue);

            
            DS_Reorder ds = new DS_Reorder();
            PresentationLayer.Reports.DS_ReorderTableAdapters.ReorderTableAdapter ta = new PresentationLayer.Reports.DS_ReorderTableAdapters.ReorderTableAdapter();
            ta.Fill(ds.Reorder,m1);
            PresentationLayer.Reports.Report_Reorder rep = new PresentationLayer.Reports.Report_Reorder();
            rep.SetDataSource(ds);
            CrystalReportViewer3.ReportSource = rep;


        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string m1 = DropDownList1.SelectedItem.Value;
            Response.Redirect("Print_Reorder.aspx?m1=" + m1);
        }
    }
}